home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_05 / saks / tree.h < prev    next >
C/C++ Source or Header  |  1995-03-06  |  269b  |  17 lines

  1. Listing 1 - A "typical" class for a binary tree with the tree
  2. node class as a private nested type
  3.  
  4. class tree
  5.     {
  6. public:
  7.     tree();
  8.     ...
  9. private:
  10.     struct node
  11.         {
  12.         node *left, *right;
  13.         ...
  14.         };
  15.     node *root;
  16.     };
  17.